package com.umpay.dto.merAccess.req.file;

import com.umpay.annotation.Pattern;
import com.umpay.verify.Verifiable;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author zhanglz
 * @ClassName: DownloadFileReq
 * @Description:
 * @date 2018/12/27 15:27
 */
public class DownloadFileReq implements Verifiable {

    @NotEmpty(message = "商户编号不能为空")
    @Pattern(message = "商户编号格式不正确")
    private String mer_id;
    @NotEmpty(message = "版本号不能为空")
    @Pattern(message = "版本号格式不正确")
    private String version;
    @NotEmpty(message = "联动订单号不能为空")
    @Pattern(message = "联动订单号格式不正确")
    private String mer_date;
    private String file_type;

    public String getMer_id() {
        return mer_id;
    }

    public void setMer_id(String mer_id) {
        this.mer_id = mer_id;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMer_date() {
        return mer_date;
    }

    public void setMer_date(String mer_date) {
        this.mer_date = mer_date;
    }

    public String getFile_type() {
        return file_type;
    }

    public void setFile_type(String file_type) {
        this.file_type = file_type;
    }

    @Override
    public String toString() {
        return "DownloadFileReq{" +
                "mer_id='" + mer_id + '\'' +
                ", version='" + version + '\'' +
                ", mer_date='" + mer_date + '\'' +
                ", file_type='" + file_type + '\'' +
                '}';
    }
}
